const BMapGL = window.BMapGL;
export const getCity = () => {
    const currentCity = JSON.parse(window.localStorage.getItem('city'))
    if (!currentCity) {
        var myGeo = new BMapGL.Geocoder();      
        // 根据坐标得到地址描述    
        myGeo.getLocation(new BMapGL.Point(116.364, 39.993), function(result){      
            if (result){      
              alert(result.address);      
            }      
        });
    }
    return currentCity
}